package odday3;



public class Chick extends Animal {
//    - Chick类：继承Animal，重写eat()、layEggs()
    Chick(String name, int age, String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println(name+"小鸡再吃小米");
    }
    void layEggs(){
        System.out.println(name+"小鸡在下蛋");
    }

}
